package com.pig4cloud.pigx.strategy.bo.okx;

import com.pig4cloud.pigx.strategy.bo.StrategyTaskContractCacheBO;
import com.pig4cloud.pigx.strategy.entity.StrategyContract;
import com.pig4cloud.pigx.strategy.entity.StrategyPositionContract;
import com.pig4cloud.pigx.strategy.entity.StrategyStopOrderContract;
import com.pig4cloud.pigx.strategy.entity.StrategyTaskContract;
import com.pig4cloud.pigx.system.entity.SystemProduct;
import lombok.Data;

import java.util.List;

/**
 * 下止盈止损委托BO
 *
 * @since 2023/2/8 09:12
 */
@Data
public class PlaceStopOrderBO extends StrategyStopOrderContract {

    private static final long serialVersionUID = 1L;

    /**
     * 开关id
     */
    private Long switchId;

    /**
     * 任务缓存
     * <p>下单前必须传入
     */
    private StrategyTaskContractCacheBO taskCache;

    /**
     * 任务
     */
    private StrategyTaskContract task;

    /**
     * 策略
     */
    private StrategyContract strategy;

    /**
     * 产品
     */
    private SystemProduct product;

    /**
     * 仓位集合
     */
    private List<StrategyPositionContract> positionList;
}
